<template>
  <div class="charts" ref="charts"></div>
</template>

<script>
import * as echarts from "echarts";
export default {
  mounted() {
    let progressCharts = echarts.init(this.$refs.charts);
    progressCharts.setOption({
      xAxis: {
        show: false,
        min: 0,
        max: 150
      },
      yAxis: {
        show: false,
        type: "category"
      },
      series: [
        {
          type: "bar",
          data: [120],
          color: 'lightblue',
          barWidth: 15,
          showBackground: true,
          backgroundStyle: {
            color: 'lightgray'
          },
          label: {
            show: true,
            formatter: '|',
            color: 'lightblue',
            fontWeight: 'bolder',
            position: 'right'
          }
        },
      ],
      grid: {
        left: 0,
        right: 0,
        top: 0,
        bottom: 0
      },
      tooltip: {}
    });
  },
};
</script>

<style scoped>
.charts {
  width: 100%;
  height: 100%;
}
</style>
